<template>
  <div>
    <van-nav-bar title="关于" left-arrow @click-left="$router.go(-1)" />
    <div class="main">
      <div class="title">
        <img
          src="https://img1.baidu.com/it/u=358762235,736393980&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"
          alt=""
        />
        <p>心愿先生</p>
        <p>Version 1.2.4</p>
      </div>
      <div class="text">
        <van-cell title="服务协议" is-link @click="$router.push('xieyi')" />
        <div class="hr"></div>
        <van-cell title="隐私政策" is-link @click="$router.push('zhengce')" />
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.main {
  width: 375px;
  height: 692px;
  /* background-color: deeppink; */
  /* margin: 0 auto; */
}
.title {
  margin: 50px auto 0;
  width: 375px;
  height: auto;
  text-align: center;
  font-size: 18px;
}
.title img {
  width: 134px;
}
.text {
  width: 300px;
  height: 100px;
  margin: 30px auto 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hr {
  height: 1px;
  width: 280px;
  background-color: #ccc;
}
</style>
